package io.renren.service;

import io.renren.entity.FileManagerEntity;

import java.io.IOException;
import java.util.List;
import java.util.Map;

import org.springframework.web.multipart.MultipartFile;

/**
 * 文件管理
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2017-06-24 20:59:11
 */
public interface FileManagerService {
	
	FileManagerEntity queryObject(Integer id);
	
	List<FileManagerEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(FileManagerEntity fileManager);
	
	void update(FileManagerEntity fileManager);
	
	void delete(Integer id);
	
	void deleteBatch(Integer[] ids);

	void upload(MultipartFile file, FileManagerEntity fileManager) throws IllegalStateException, IOException ;
	
	FileManagerEntity queryByUrl(String url);
}
